# coding=utf-8

[IFACE_SELECTED, CAPTURE_STARTED, CAPTURE_STOPPED, FILTER_ENTERED] = range(1, 5)
NOT = 0
controlGroups = {
    IFACE_SELECTED: (
        ("bstart", True),
        ("bstop", False),
    ),
    CAPTURE_STARTED: (
        ("bstart", False),
        ("bstop", True),
        ("tfilter", True),
        ("bfilter", True),
    ),
    CAPTURE_STOPPED: (
        (NOT, CAPTURE_STARTED),
        (NOT, FILTER_ENTERED),
    ),
    FILTER_ENTERED: (
        ("bclearFilterList", True),
        ("bcopyFilter", True),
        ("tcurrentFilteredGame", True),
    ),
}